import Mock from 'mockjs'


Mock.mock('/home/swiper', 'get', () => {
  return  Mock.mock({
    'code': '200',
    'msg': '成功',
    'data|6': [{
      'id|+1': 0,
      'src': '@image(200x100,@rgba())',
    }]
  })
})

Mock.mock('/home/notice', 'get', () => {
  return  Mock.mock({
    'code': '200',
    'msg': '成功',
    'data|10': [{
      'id|+1': 0,
      'title': '@cparagraph()',
      'time': '@date("yyyy.MM.dd")'
    }]
  })
})

Mock.mock('/home/trends', 'get', () => {
  return  Mock.mock({
    'code': '200',
    'msg': '成功',
    'data|4': [{
      'id|+1': 0,
      'src': '@image(200x100,@rgba())',
      'title': '@cparagraph()',
      'time': '@date("yyyy/MM/dd")',
      'author': '@cfirst()'+'@cname() '+'['+'@province()'+'分公司]',
      'viewer|1-500': 1,
      
    }]
  })
})

Mock.mock('/home/special', 'get', () => {
  return  Mock.mock({
    'code': '200',
    'msg': '成功',
    'data|3': [{
      'id|+1': 0,
      'src': '@image(200x100,@rgba())',
    }]
  })
})

Mock.mock('/home/news', 'get', () => {
  return  Mock.mock({
    'code': '200',
    'msg': '成功',
    'data|8': [{
      'id|+1': 0,
      'src': '@image(200x100,@rgba())',
      'title': '@cparagraph()',
      'time': '@date("yyyy/MM/dd")',
      'author': '@cfirst()'+'@cname() '+'['+'@province()'+'分公司]',
      'viewer|1-500': 1,
      
    }]
  })
})

Mock.mock('/home/lists', 'get', () => {
  return  Mock.mock({
    'code': '200',
    'msg': '成功',
    'data|12': [{
      'id|+1': 0,
      'src': '@image(200x100,@rgba())',
      'title': '@cparagraph()',
      'time': '@date("yyyy/MM/dd")',
      'author': '@cfirst()'+'@cname() '+'['+'@province()'+'分公司]',
      'viewer|1-500': 1,
      
    }]
  })
})

Mock.mock('/home/list/detail', 'get', () => {
  return  Mock.mock({
    'code': '200',
    'msg': '成功',
    'data': {
      'id|+1': 0,
      'title': '@cparagraph(1)',
      'time': '@date("yyyy/MM/dd")',
      'author': '@cfirst()'+'@cname() '+'['+'@province()'+'分公司]',
      'viewer|1-500': 1,
    }
  })
})

